import http from '@/utils/http'
import responseDataType from 'responseDataType'

export interface Province {
  provinceID: string
  provinceName: string
}

export interface City {
  cityID: string
  cityName: string
}

export interface Area {
  areaID: string
  areaName: string
}

export interface Addr extends City, Province, Area {

}

export const getProvince = () => http<responseDataType.IData<Province[]>>({
  url: 'xxx',
  method: 'post'
})
export const getCity = (data) => http<responseDataType.IData<City[]>>({
  url: 'xxx',
  method: 'post',
  data
})

export const getArea = (data) => http<responseDataType.IData<Area[]>>({
  url: 'xxx',
  method: 'post',
  data
})
